﻿#include <iostream>
#include <thread>
#include <chrono>
#include "Cv.h"

//using namespace cv;

//#define TUBEFOCUS
//#define PMASKCHANGECOMPONENT
//#define METACOUP

int main(int argc, char **argv) {

    Cv* cv_ = new Cv();

    auto open_ = cv_->createOpencv();

    
    //模拟海康采集到的图像
    auto mask = cv::imread("C:\\Users\\chao.ju\\Desktop\\2.bmp");
    
    //模拟用户输入的参数
    Attribute attr;
    attr.type = Circle;

    //后续就可以调用封装好的Opencv类的接口对图像预处理、拟合、绘画、获取中心等等
    //示例
    open_->Opencv_preprocess(new TubeFocus(), mask, attr); //调用 TubeFocus 预处理方法
    //...


    cv::waitKey(0);

    return 0;
}

//C:\\Users\\chao.ju\\Desktop\\8.bmp



